<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>箭头函数基本语法</title>
</head>

<body>
  <script>
    const fn = () => {
      console.log('我是箭头函数')
    }
    // fn()
    const fn2=x=>x+12
    // console.log(fn2(1))
    const fn3=uname=>({uname:uname})
    console.log(fn3('Lele'))
  </script>
</body>

</html>